var Test = function () {
}

Test.prototype.start = function () {
alert('hola');
}
var test = new Test();



test.start();


var test2 = {};

test2.start = function() {alert('hola');}


var SubTest = function () {

};

SubTest.prototype = new Test();
